home *** CD-ROM | disk | FTP | other *** search
- #include "stdafx.h"
-
- int view_grid = FALSE;
-
- void draw_grid()
- {
- int start = game_surface->start;
-
- if (view_grid)
- {
- for (int y = start - start % LEVEL_VTICK; y < start + GAME_DY; y += LEVEL_VTICK)
- dashedline(game_surface, 0, y, GAME_DX - 1, y, gray);
-
- for (int x = GAME_DX / 2 - (GAME_DX / 2 / LEVEL_HTICK) * LEVEL_HTICK; x < GAME_DX; x += LEVEL_HTICK)
- dashedline(game_surface, x, start, x, start + GAME_DY - 1, gray);
- }
- }